package com.mx.project.dao;

import com.mx.project.pojo.Order;
import com.mx.project.vo.CartInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer oid);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer oid);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    int insertOrderLists(@Param("lists") List<Order> lists);

    List<Order> selectByOnumber(@Param("onumber") String onumber);

    int updateStateByOnumber(@Param("onumber") String onumber,@Param("state") Integer state);
}